<%@ page import="org.jdom.Document,org.jdom.output.XMLOutputter" %>
<%
//set response for XML mime type
response.setContentType("text/xml");

// retrieve xml dom
Document doc = (Document) request.getAttribute("document");

// prepare outputter
XMLOutputter xo = new XMLOutputter();

// print put xml
String output = xo.outputString(doc.getRootElement());
%>
<%= output %>
